import React from "react";
import PropTypes from 'prop-types'
export default function TodoHeader(props) {
  return (
    <div>
      <h1>{props.title}</h1>
      <hr />
    </div>
  );
}

TodoHeader.defaultProps = {
  title: "代办事项",
};

TodoHeader.propTypes = {
  title: PropTypes.string.isRequired,
};
